﻿<%@ Page Title="" Language="C#" MasterPageFile="~/personal-accident/Personal_Accident.master"
    AutoEventWireup="true" CodeFile="results.aspx.cs" Inherits="personal_accident_results" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/controls/usrMoreInfoDropdownButton.ascx" TagName="usrMoreInfoDropdownButton"
    TagPrefix="uc1" %>
<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<%@ Register Src="~/controls/usrPhoneNo.ascx" TagName="usrPhoneNo" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=90);
            opacity: 0.8;
        }
    </style>
    <link rel="stylesheet" type="text/css" href="../css/forms_results.css" />
    <link rel="stylesheet" type="text/css" href="../css/button.css" />
    <asp:ScriptManager ID="ScriptManager" runat="server">
    </asp:ScriptManager>

    <script type="text/javascript">
//        var strprerow = "row0";
//        var orgBgColor = "#ffffff";
//        var arrRow;
//        //var arrRow;
//        function AddMoreInfoRows() {
//            try {
//                var table = document.getElementById('<%=gvPAResult.ClientID%>');
//                var rowCount = table.rows.length;
//                //alert("AddMoreInfoRows");
//                //alert(rowCount);                
//                rowCount += 4;
//                arrRow = new Array();
//                var curRowCount = 0;
//                for (var i = 0; i <= rowCount; i++) {
//                    //rowCount += 1;
//                    i += 1;
//                    var row = table.insertRow(i + 1);
//                    row.id = "NewRow" + i.toString();
//                    arrRow[curRowCount] = "NewRow" + i.toString();
//                    curRowCount++;
//                    //alert(row.id);
//                    var rowCell = row.insertCell(0);
//                    rowCell.colSpan = "11";
//                    //var cellContent = document.createElement("input");
//                    //cellContent.type = "text";
//                    row.style.display = 'none';
//                    rowCell.innerHTML = "";
//                    //rowCell.appendChild(cellContent);
//                }
//            }
//            catch (e) {
//                //alert(e);
//            }
//        }
        var strprerow = "row0";
        var orgBgColor = "#ffffff";
        var arrRow;
        var arrGridRow;
        //var arrRow;
        function AddMoreInfoRows() {
            try {
                var table = document.getElementById('<%=gvPAResult.ClientID%>');
                var grdName = '<%=gvPAResult.ClientID%>';
                var rowCount = table.rows.length;
                //alert("AddMoreInfoRows");
                //alert(rowCount);                
                rowCount += 4;
                arrRow = new Array();
                arrGridRow = new Array();
                var curRowCount = 0;
                var newrowid = 0;
                for (var i = 0; i <= rowCount; i++) {
                    //rowCount += 1;
                    newrowid += 1;
                    var row = table.insertRow(newrowid + 1);
                    row.id = "NewRow" + newrowid.toString();
                    arrRow[curRowCount] = "NewRow" + newrowid.toString();

                    arrGridRow[curRowCount] = "#" + grdName + "_" + "GridRow" + (curRowCount + 1).toString();
                    //alert(arrGridRow[curRowCount].toString());
                    curRowCount++;
                    newrowid += 1;
                    //alert(row.id);
                    var rowCell = row.insertCell(0);
                    rowCell.colSpan = "11";
                    //var cellContent = document.createElement("input");
                    //cellContent.type = "text";
                    row.style.display = 'none';
                    rowCell.innerHTML = "";
                    //rowCell.appendChild(cellContent);
                }
            }
            catch (e) {
                //alert(e);
            }
        }
        function HideAllRow(currentRowId) {
            try {
                //alert("HideAllRow");
                //alert(arrRow.length.toString());
                for (var i = 0; i < arrRow.length; i++) {
                    if (arrRow[i] != null) {
                        //alert(arrRow[i].toString());
                        if (currentRowId != arrRow[i].toString())
                            HideCurrentRow(arrRow[i].toString());
                    }
                }
            }
            catch (e) {
                //alert(e);
            }
        }

        function HideCurrentRow(rowId) {

            var table = document.getElementById('<%=gvPAResult.ClientID%>');
            var curRow = document.getElementById(rowId);
            //alert(curRow);
            if (curRow) {
                //alert(curRow);
                if (curRow.style.display == '')
                    curRow.style.display = 'none';
            }

            return false;
        }

        function HideRowMoreInfo(rowIdsuffix) {
            //alert(rowIdsuffix);
            var rowId = 'NewRow' + rowIdsuffix;

            var table = document.getElementById('<%=gvPAResult.ClientID%>');
            var curRow = document.getElementById(rowId);
            if (curRow) {
                //alert(curRow);
                if (curRow.style.display == '')
                    curRow.style.display = 'none';
            }

        }

        function ShowHideRow(rowId, rowText) {
            //alert(rowId);
            var table = document.getElementById('<%=gvPAResult.ClientID%>');
            var curRow = document.getElementById(rowId);
            //alert(curRow);
            if (curRow.style.display == '') {
                curRow.style.display = 'none';
            }
            else {
                var curCell = curRow.cells;
                curCell[0].innerHTML = rowText;
                curRow.style.display = '';
            }
            //alert("showhide");
            return false;
        }

        function AddRow(selectedRowId, rowText) {
            //alert(tableID);
            //alert(selectedRowId);
            //alert(rowText);
            var curRow = document.getElementById(selectedRowId);
            var newRow = document.getElementById(selectedRowId + "Added");
            var curRowPos = current.rowIndex;
            //alert(curRow);
            //alert(curRowPos);
            if (newRow == null) {
                var table = document.getElementById(tableID);

                var rowCount = table.rows.length;
                var row = table.insertRow(curRowPos + 1);

                var rowCell = row.insertCell(0);
                rowCell.colSpan = "11";
                var cellContent = document.createElement("input");
                cellContent.type = "text";
                cellContent.innerHTML = rowText;
                rowCell.appendChild(cellContent);
            }
            else {
                if (newRow.style.display == '') {
                    newRow.style.display = 'none';
                }
                else {
                    newRow.style.display = '';
                }
            }
            return false;
        }

        function OpenUrl(url) {
            var winl = (screen.width - 800) / 2;
            var wint = (screen.height - 500) / 2;
            var settings = 'height=500,';
            settings += 'width=800,';
            settings += 'top=' + wint + ',';
            settings += 'left=' + winl + ',';
            settings += 'scrollbars=yes,';
            settings += 'resizable=No';
            window.open(url, 'NEWWIN', settings);
        }
        
    </script>

    <div class="elements_inner_wrapper">
        <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />
        <!-- #Include file="../includes/body_loader.inc" -->

        <script type="text/javascript">
            IncreaseProgress(45);
        </script>

        <div id="divContent" style="display: none;">
            <div id="contentBody_full">
                <div>
                    <ul id="stp_menu">
                        <li class="stp1_r"><a href="#"><span class="stp_r_g">Start Quote</span></a></li>
                        <li class="stp2_r"><a href="#"><span class="active_r">Quote Results</span></a></li>
                        <li class="stp3"><a href="#"><span class="stp_r">Buy Now</span></a></li>
                    </ul>
                </div>
                <div class="seperator">
                </div>
                <div class="section">
                    <asp:GridView ID="gvPAResult" runat="server" AutoGenerateColumns="False" CellPadding="2"
                        Width="100%" GridLines="None" CssClass="gridstyle" DataKeyNames="PAInsID,PACompanyID"
                        EmptyDataText="<div class='pad_10'><h2>No Matches Found!</h2><span class='font_12'><strong>Please take note that there are no matches found based on your details entered.</strong></span><div class='seperator'></div><div class='seperator'></div>You can also return to our <a href='/'>homepage</a> or our dedicated <a href='/personal-accident/'>personal accident</a> page to re-quote.<div class='seperator'></div>Thank you for using CompareXpress.com.</div>"
                        OnRowCreated="gvPAResult_RowCreated" AllowSorting="True" OnSorting="gvPAResult_Sorting"
                        OnRowDataBound="gvPAResult_RowDataBound" OnRowCommand="gvPAResult_RowCommand">
                        <Columns>
                            <asp:BoundField DataField="PAInsID" InsertVisible="False" ReadOnly="True" Visible="False">
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="Insurer/Plan Name">
                                <ItemTemplate>
                                    <div>
                                        <%--<asp:Image runat="server" ID="imgCompnayLogo" ImageUrl='<%# Eval("CompanyLogoServerUrl").ToString() %>' />--%>
                                        <asp:Image runat="server" ID="imgCompnayLogo" Width="90" />
                                    </div>
                                    <div>
                                        <asp:Label ID="lblProductName" runat="server"></asp:Label>
                                    </div>
                                    <div>
                                        <asp:Label ID="lblPlanName" runat="server"></asp:Label>
                                    </div>
                                </ItemTemplate>
                                <ItemStyle Width="110px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="PlanOrder" HeaderText="PlanOrder" SortExpression="PlanOrder"
                                Visible="false">
                                <ItemStyle Width="0px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="Annual<br />Premium<br /><span class='grid_font'>w/GST 7%</span>"
                                SortExpression="AnnualPremiumwithGST" HeaderStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="center"
                                HeaderStyle-Width="70px">
                                <ItemTemplate>
                                    <asp:Label ID="lblAnnualPremiumwithGST" runat="server" Width="70px"></asp:Label>
                                    <%--Text='<%# GetDoller(Eval("WithGST").ToString()) %>'></asp:Label> --%>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="center"></HeaderStyle>
                            </asp:TemplateField>
                            <asp:BoundField DataField="DeathAdult" HeaderText="Death<br /><span class='grid_font'>(Adult)</span>"
                                SortExpression="DeathAdult" HtmlEncode="false">
                                <ItemStyle Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TPDAdult" HeaderText="Total Permanent Disablement<br /><span class='grid_font'>(Adult)</span>"
                                HtmlEncode="false" SortExpression="TPDAdult">
                                <ItemStyle Width="95px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="Temp Total Disablement<br /><span class='grid_font'>(per week)</span>"
                                SortExpression="IsTempTotDisPW">
                                <ItemTemplate>
                                    <div>
                                        <asp:Image ID="imgTempTotalDisable" runat="server" ImageUrl="~/images/icons/X.gif" />
                                    </div>
                                    <div>
                                        <asp:Label ID="lblTempTotalDisable" runat="server" Text="" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Medical Expenses<br /><span class='grid_font'>(Adult)</span>"
                                SortExpression="MedExpAdult">
                                <ItemTemplate>
                                    <div>
                                        <asp:Image ID="imgMedExpAdult" runat="server" ImageUrl="~/images/icons/X.gif" />
                                    </div>
                                    <div>
                                        <asp:Label ID="lblMedExpAdult" runat="server" Text="" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Hospital Cash<br /><span class='grid_font'>(per day)</span>"
                                SortExpression="HCPDAdult">
                                <ItemTemplate>
                                    <div>
                                        <asp:Image ID="imgHCPDAdult" runat="server" ImageUrl="~/images/icons/X.gif" />
                                    </div>
                                    <div>
                                        <asp:Label ID="lblHCPDAdult" runat="server" Text="" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <%--<asp:TemplateField HeaderText="Recuperation Benefit" SortExpression="RecupBenefit">
                            <ItemTemplate>
                                <div>
                                    <asp:Image ID="imgRecupBenefit" runat="server" ImageUrl="~/images/icons/X.gif" />
                                </div>
                                <div>
                                    <asp:Label ID="lblRecupBenefit" runat="server" Text="" />
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Bereavement Relief" SortExpression="BereaveRelief">
                            <ItemTemplate>
                                <div>
                                    <asp:Image ID="imgBereaveRelief" runat="server" ImageUrl="~/images/icons/X.gif" />
                                </div>
                                <div>
                                    <asp:Label ID="lblBereaveRelief" runat="server" Text="" />
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="DoubleIndemnity" HeaderText="" Visible="false" />
                        <asp:TemplateField HeaderText="Double<br />Indemnity<br /><span class='grid_font'>(public conveyance)</span>" SortExpression="DoubleIndemnity" 
                            HeaderStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="center" HeaderStyle-Width="115px"> 
                            <ItemTemplate> 
                                <asp:Image ID="imgDoubleIndemnity" runat="server" 
                                ImageUrl='<%# GetImage(Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "DoubleIndemnity"))) %>' />
                            </ItemTemplate> 
                         </asp:TemplateField>
                        <asp:BoundField DataField="Terrorism" HeaderText="Terrorism" Visible="false" SortExpression="Terrorism">
                            <ItemStyle Width="65px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Terrorism" SortExpression="Terrorism" 
                            HeaderStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="center" HeaderStyle-Width="65px"> 
                            <ItemTemplate> 
                                <asp:Image ID="imgTerrorism" runat="server" 
                                ImageUrl='<%# GetImage(Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "Terrorism"))) %>' />
                            </ItemTemplate> 
                         </asp:TemplateField>--%>
                            <asp:TemplateField HeaderText="Dental Treatment" SortExpression="DentalTreatment">
                                <ItemTemplate>
                                    <div>
                                        <asp:Image ID="imgDentalTreatment" runat="server" ImageUrl="~/images/icons/X.gif" />
                                    </div>
                                    <div>
                                        <asp:Label ID="lblDentalTreatment" runat="server" Text="" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="ICU Hospital <br/>Cash (per day)" SortExpression="IsHaspitalCPDA">
                                <ItemTemplate>
                                    <div>
                                        <asp:Image ID="imgHospitalICU" runat="server" ImageUrl="~/images/icons/X.gif" />
                                    </div>
                                    <div>
                                        <asp:Label ID="lblHospitalICU" runat="server" Text="" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Chinese <br />Medical Expenses" SortExpression="ChineseMedicalExpenses">
                                <ItemTemplate>
                                    <div>
                                        <asp:Image ID="imgChineseMedicalExpenses" runat="server" ImageUrl="~/images/icons/X.gif" />
                                    </div>
                                    <div>
                                        <asp:Label ID="lblChineseMedicalExpenses" runat="server" Text="" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Compassionate Cash" SortExpression="CompassionateCash">
                                <ItemTemplate>
                                    <div>
                                        <asp:Image ID="imgCompassionateCash" runat="server" ImageUrl="~/images/icons/X.gif" />
                                    </div>
                                    <div>
                                        <asp:Label ID="lblCompassionateCash" runat="server" Text="" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Kidnap Benefit" SortExpression="KidnapBenefit">
                                <ItemTemplate>
                                    <div>
                                        <asp:Image ID="imgKidnapBenefit" runat="server" ImageUrl="~/images/icons/X.gif" />
                                    </div>
                                    <div>
                                        <asp:Label ID="lblKidnapBenefit" runat="server" Text="" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="PAId" SortExpression="PAId" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblPAId" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="PAInsId" SortExpression="PAInsId" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblPAInsId" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="PACompanyID" SortExpression="PACompanyID" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblPACompanyID" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="TempPDPW" SortExpression="TempPDPW" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblTempPDPW" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="TempTDPW" SortExpression="TempTDPW" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblTempTDPW" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="NoofChild" SortExpression="NoofChild" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblNoofChild" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="AnnualPremiumInd" SortExpression="AnnualPremiumInd"
                                Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblAnnualPremiumInd" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="AnnualPremiumSpouse" SortExpression="AnnualPremiumSpouse"
                                Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblAnnualPremiumSpouse" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="AnnualPremiumChild" SortExpression="AnnualPremiumChild"
                                Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblAnnualPremiumChild" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="PolicyType" SortExpression="PolicyType" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblPolicyType" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="" HeaderStyle-CssClass="buydirect">
                                <ItemTemplate>
                                    <div class="gridbtn4">
                                        <a href="" runat="server" id="hplCallMe" class="more_info_but" visible="true">
                                            <asp:Image runat="server" ID="ibtCallMe" ImageUrl="~/images/button/call_na.gif" AlternateText="Buy" />
                                        </a>
                                        <asp:ImageButton ID="ibtBuyNow" ImageUrl="~/images/button/buydirect.gif" AlternateText="Select"
                                            runat="server" CommandName="BuyNow" onmouseover="this.src='/images/button/buydirect_s.gif';"
                                            onmouseout="this.src='/images/button/buydirect.gif';" />
                                        <uc1:usrMoreInfoDropdownButton ID="ibtMoreInfo" runat="server" class="more_info_but"
                                            RowId="row1" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle />
                        <PagerStyle />
                        <SelectedRowStyle />
                        <HeaderStyle CssClass="gridheader" />
                        <EditRowStyle />
                        <AlternatingRowStyle CssClass="gridodd" />
                        <RowStyle CssClass="grideven" />
                    </asp:GridView>
                </div>
                <br clear="all" />
                <div class="formButtons">
                    <div class="cancel">
                        <span class="button2">
                            <%--<asp:ImageButton ID="ibtBack" runat="server"
                           OnClick="ibtBack_Click"  ImageUrl="~/images/buttons/form_back_but.gif"
                           onmouseover="this.src='/images/buttons/form_back_but_o.gif';" onmouseout="this.src='/images/buttons/form_back_but.gif';" />--%>
                            <asp:Button runat="server" ID="ibtBack" onmousedown="this.className = 'button_back_mousedown';"
                                onmouseout="this.className = 'button_back';" onmouseup="this.className = 'button_back';"
                                CssClass="button_back" OnClientClick="this.removeAttribute('onmouseout');this.removeAttribute('onmouseup'); this.className = 'button_processing';"
                                OnClick="ibtBack_Click" />
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="blanket" style="display: none;">
    </div>

    <script type="text/javascript">
        IncreaseProgress(75);
    </script>

    <div style="display: none;">
        <asp:LinkButton runat="server" ID="lnkbtnPopup" Text="click"></asp:LinkButton>
        <input id="inputPAInsID" runat="server" type="hidden" />
        <input id="inputPACompanyID" runat="server" type="hidden" />
    </div>
    <cc1:ModalPopupExtender ID="mpePopup" runat="server" DropShadow="true" PopupControlID="pnlPopup"
        BackgroundCssClass="modalBackground" TargetControlID="lnkbtnPopup" CancelControlID="btnClose"
        BehaviorID="mdlPopupContactInfo">
    </cc1:ModalPopupExtender>
    <!-- Contact Info Popup | Start -->
    <asp:Panel ID="pnlPopup" runat="server" Style="display: none; background: white;"
        Width="595px" Height="320px">
        <div id="divPopup" style="padding: 10px; padding-top: 0px; height: 330px;">
            <div style="width: 100%; height: 30px; text-align: right; margin-top: 3px;">
                <div class="left" style="font-size: 11px; color: #0098cc; padding: 13px 0 0 15px">
                    <strong>CompareXpress Exclusive</strong>: You won't find a cheaper package on any
                    other websites!</div>
                <div class="bg_grey_5 pad7px txtright" style="width: 560px; text-align: right;">
                    <a href="#" name="ctl00$ContentPlaceHolder1$btnClose" onclick="HidePanelContactInfo();"
                        id="A1">
                        <img src="/images/spacer.gif" id="btnClose" border="0" class="button_close" width="75"
                            height="30" alt="Close" /></a>
                </div>
            </div>
            <div class="seperator_15px">
            </div>
            <div class="seperator_15px">
            </div>
            <table cellpadding="0" cellspacing="0" border="0" class="table_details" style="width: 580px;">
                <tr>
                    <td width="220">
                    </td>
                    <td class="bg_grey_2" width="360">
                        <div>
                            <div class="curvetopleft left">
                            </div>
                            <div class="curvetopright right">
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px border1pxdotb_light">
                        <strong>Your Name</strong>
                    </td>
                    <td class="bg_grey_2 pad7px border2pxdotb">
                        <asp:TextBox ID="txtFullName" Width="250" MaxLength="80" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvFullName" runat="server" ControlToValidate="txtFullName"
                            CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="contact_info"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revFullName" runat="server" ValidationGroup="contact_info"
                            ValidationExpression="^[a-zA-Z''-'\s]{1,80}$" CssClass="validationErrorControl"
                            ControlToValidate="txtFullName" ErrorMessage=""></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px border1pxdotb_light">
                        <strong>Your E-mail</strong>
                    </td>
                    <td class="bg_grey_2 pad7px border2pxdotb">
                        <asp:TextBox ID="txtEmail" runat="server" Width="250" MaxLength="100"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvEmail" CssClass="validationErrorControl" runat="server"
                            ValidationGroup="contact_info" ErrorMessage="" Text="" ControlToValidate="txtEmail"
                            Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="cxvEmail" runat="server"
                            ValidationGroup="contact_info" ErrorMessage="" Text="" ControlToValidate="txtEmail"
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px border1pxdotb_light">
                        <strong>Your Mobile Number</strong>
                    </td>
                    <td class="bg_grey_2 pad7px border2pxdotb">
                        <uc1:usrPhoneNo ID="txtMobileNo" IsEnabled="true" IsRequired="true" PhoneNoRequireErrorMessage="Require mobile number."
                            PhoneNoErrorMessage="Mobile phone number should 8 digits." PhoneNoValidErrorMessage="Invalid mobile phone number."
                            runat="server" ValidationGroup="contact_info" />
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px">
                    </td>
                    <td class="bg_grey_2 pad7px">
                        <asp:Button runat="server" ID="btnBuyNow" CssClass="button_buy-now" OnClick="btnBuyNow_Click"
                            OnClientClick="LoadValidationErrorCss();" ValidationGroup="contact_info" />
                        <div id="divdisclaimer" style="width: 320px; font-size: 0.85em; margin: 0 auto; text-align: justify;
                            padding: 7px;">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td class="bg_grey_2 w210px">
                        <div>
                            <div class="curvebottomleft left">
                            </div>
                            <div class="curvebottomright right">
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td style="font-size: 11px;">
                        View CompareXpress! <a href="../terms/" target="_blank">Terms</a> and Comparexpress!
                        <a href="../privacy/" target="_blank">Policy</a>.
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <!-- Contact Info Popup | End   -->

    <script type="text/javascript">
        IncreaseProgress(95);
    </script>

    <script type="text/javascript">

        function ShowPopUp(PAInsID, PACompanyID) {

            //alert(PAInsID + ' ' + PACompanyID);
            document.getElementById('<%=inputPAInsID.ClientID %>').value = PAInsID;
            document.getElementById('<%=inputPACompanyID.ClientID %>').value = PACompanyID;

            var modpop = $find("mdlPopupContactInfo");
            if (!modpop) { return; }
            modpop.show();
        }

        function HidePanelContactInfo() {
            document.getElementById('<%=pnlPopup.ClientID%>').style.display = 'none';
            var modpop = $find("mdlPopupContactInfo");
            if (!modpop) { return; }
            modpop.hide();
        }

        IncreaseProgress(100);
        HideLoading();
        AddMoreInfoRows();
    </script>

</asp:Content>
